LOGIN_ERROR = {"code" : 50001, "msg" : "Login or Password not match"}
GET_USER_INFO_ERROR = {"code" : 50002, "msg" : "Get user profile failed"}
CREATE_USER_SERVER_ERROR = {"code" : 50003, "msg" : "Create user failure due to server internal error"}
CREATE_USER_RESOURCE_ERROR = {"code" : 50003, "msg" : "Create user failure, ressource missing."}
UPDATE_PROFILE_ERROR = {"code" : 50005, "msg" : "Update failed, user unknown"}
UPDATE_PROFILE_NO_CHANGE_ERROR = {"code" : 50005, "msg" : "Update failed, maybe you change nothing?"}
UPDATE_PASS_ERROR = {"code" : 50006, "msg" : "Update password failed, user unknow or mismatch password."}
UPDATE_PASS_NO_CHANGE_ERROR = {"code": 50006, "msg": "Update failed, maybe you change nothing?"}
UPDATE_CLS_NO_CHANGE_ERROR = {"code" : 51001, "msg" : "Update failed, maybe there is no change?"}
INSERT_CLS_FAILURE_ERROR = {"code" : 51001, "msg" : "Add classification failed, please retry.."}
SEARCH_DREAM_BY_ID_ERROR = {"code" : 52001, "msg" : "No dream found, please check if dream _id exsist."}
UPDATE_DREAM_BY_ID_ERROR = {"code" : 52002, "msg" : "Update failed, maybe you changed nothing?" }
CREATE_DREAM_ERROR = {"code": 52003, "msg": "Create a new dream failed."}
DELETE_DREAM_ERROR = {"code": 52004, "msg": "Delete dream failed, user or dream id error."}

UNKNOW_TOKEN_ERROR = {"code": 50100, "msg" : "Action failed due to unknown token."}

GEN_BARCHART_ERROR = {"code": 53001, "msg": "Generate barchart data error!"}
GEN_PIECHART_ERROR = {"code": 53002, "msg": "Generate piechart data error!"}
